import request from '@/utils/request.js'
// 获取推荐歌单
export const recommendMusic = params => request({
  url: '/personalized',
  method:'GET',
  params
})

// 获取轮播图
export const bannerLists = type => request({
  url: '/banner',
  method:'GET',
  type
})

// 首页 - 推荐最新音乐
export const newMusic = params => request({
  url: "/personalized/newsong",
  params
})

// 搜索音乐
export const searchMusic = params => request({
  url: "/cloudsearch",
  params
})

// 热搜关键字
export const hotSearch = () => request({
  url: '/search/hot'
})

// 获取歌单歌曲
export const getSongList = (params) => request({
  url: '/playlist/track/all',
  params
})

// 根据id获取歌单详情
export const getSongListDetails = (params) => request({
  url: '/playlist/detail',
  params
})